package Model.StatisticalReport;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.sf.oval.constraint.NotEmpty;
import net.sf.oval.constraint.NotNull;

import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonAutoDetect(fieldVisibility= JsonAutoDetect.Visibility.ANY,getterVisibility= JsonAutoDetect.Visibility.NONE)
public class Report {

    private int id;

    @NotEmpty
    private String CLASS; //人员类型

    @JsonFormat(pattern="yyyy.MM")
    @NotNull
    private Date DAA; //上报日期

    @NotEmpty
    private String SN;

    private Date updateTime; //插入时间
}
